import { getCptt } from '@/api/cpttApis'
import { Message } from 'element-ui'
import { getHisCptt,getRanking } from '@/api/htcp'
export default {
  namespaced: true,
  state:{
    htcps:[],
  },
  getters:{
    htcps:state => state.htcps,
  },
  mutations:{
    SET_HTCPS:(state,htcps)=>{ state.htcps = htcps },
  },
  actions:{
    LOAD_HTCPS:async ({commit,dispatch},show)=>{
      const { cptts } = await getHisCptt().catch(()=>{})
      console.log({cptts})
      commit("SET_HTCPS",cptts)
    },
  }
}